;;; ~/.doom.d/config/init-ess.el -*- lexical-binding: t; -*-

;; Only merge ess & polymode config can fix the error: ess-mode-map

;; --- ess ---
(require 'ess-site)

(fset 'HA-mAcro-R-define
   (lambda (&optional arg) "Keyboard macro." (interactive "p") (kmacro-exec-ring-item '(" <- " 0 "%d") arg)))

(map!
 "M--" #'HA-mAcro-R-define)


;; --- poly mode ---
(require 'poly-markdown)
(require 'poly-R)


(provide 'init-ess-polymode)
